<?php
/**
 * @author Jhonatan S. Serafim
 * @since 04/07/2011
 */
class SGObjetoVariavel extends SGObjeto {
	
	const 
	BLOB = 0,
	CHAR = 1,
	DOUBLE = 2,
	DATE = 3,
	INT = 4,
	STRING = 5,
	TIME = 6,
	DATETIME = 7;
	
	protected $nome;
	protected $valor;
	protected $tipo;
	protected $tamanho;
	protected $nullable;
	protected $primaryKey;
	protected $foreignKey;
	protected $comentario;
	
	public function __construct($nome, $tipo, $valor=false, $tamanho=false, $nullable=true, $primaryKey=false, $foreignKey=false, $comentario=false){
		$this->nome = $nome;
		$this->tipo = $tipo;
		$this->valor = $valor;
		$this->tamanho = $tamanho;
		$this->nullable = $nullable;
		$this->primaryKey = $primaryKey;
		$this->foreignKey = $foreignKey;
		$this->comentario = $comentario;
	}
	
}
?>